package com.feri.ssm.service.intf;

import com.feri.ssm.entity.Food;
import com.feri.ssm.vo.PageVo;
import com.feri.ssm.vo.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * .::::.
 * .::::::::.
 * :::::::::::  I && YOU
 * ..:::::::::::'
 * '::::::::::::'
 * .::::::::::
 * '::::::::::::::..
 * ..::::::::::::.
 * ``::::::::::::::::
 * ::::``:::::::::'        .:::.
 * ::::'   ':::::'       .::::::::.
 * .::::'      ::::     .:::::::'::::.
 * .:::'       :::::  .:::::::::' ':::::.
 * .::'        :::::.:::::::::'      ':::::.
 * .::'         ::::::::::::::'         ``::::.
 * ...:::           ::::::::::::'              ``::.
 * ````':.          ':::::::::'                  ::::..
 * '.:::::'                    ':'````..
 * ━━━━━━永无BUG!━━━━━━
 *
 * @Description:
 * @Author: 邢朋辉
 * @Date: 2022/11/19 14:29
 */
public interface FoodService {
    R save(Food food);
    R update(Food food);
    R delete(int id);
    R deleteBatch(int[] ids);
    PageVo queryPage(int page,int limit);
    /**
     * 数据导入*/
    R importData(MultipartFile file);
    /**
     * 数据导出 下载数据*/
    void exportData(HttpServletResponse response) throws IOException;
}
